package com.phiture.erp.basic.core.pojo.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.phiture.erp.common.constants.DictTypeConstants;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 物料计划资料 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ErpMaterialPlanRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "7536")
    @ExcelProperty("编号")
    private Long id;

    @Schema(description = "计划状态(0:未核准 1:核准 2:禁用 3:已删除)", example = "2")
    @ExcelProperty("计划状态(0:未核准 1:核准 2:禁用 3:已删除)")
    private Boolean status;

    @Schema(description = "禁用组织")
    @ExcelProperty("禁用组织")
    private String freezeOrgUnit;

    @Schema(description = "物料", requiredMode = Schema.RequiredMode.REQUIRED, example = "12184")
    @ExcelProperty("物料")
    private Long materialId;

    @Schema(description = "物料属性")
    @ExcelProperty("物料属性")
    @DictFormat(DictTypeConstants.ERP_MATERIAL_ATTR)
    private Integer materialAttr;

    @Schema(description = "物料属性名称")
    @ExcelProperty("物料属性名称")
    private String materialAttrName;

    @Schema(description = "制造策略( 10110:MTS10基于预测 10120:MTS11基于预测(只计算毛需求，不考虑库存) 10130:MTS20基于预测和订单)")
    @ExcelProperty("制造策略( 10110:MTS10基于预测 10120:MTS11基于预测(只计算毛需求，不考虑库存) 10130:MTS20基于预测和订单)")
    private Integer planStrategy;

    @Schema(description = "物料特性(10410:主物料 10420:主辅料 10430:主参配料 0:)")
    @ExcelProperty("物料特性(10410:主物料 10420:主辅料 10430:主参配料 0:)")
    private Integer materialChar;

    @Schema(description = "批量增量")
    @ExcelProperty("批量增量")
    private BigDecimal batchincQty;

    @Schema(description = "生产周期(天)")
    @ExcelProperty("生产周期(天)")
    private Integer produceLeadTime;

    @Schema(description = "采购周期(天)")
    @ExcelProperty("采购周期(天)")
    private Integer recevingLeadTime;

    @Schema(description = "责任部门", example = "27502")
    @ExcelProperty("责任部门")
    private Long dutyDepartmentId;

    @Schema(description = "是否倒冲")
    @ExcelProperty("是否倒冲")
    private Integer isBackFlush;

    @Schema(description = "领送料模式(11010:生产领料 11030:看板 11050:直送 11040:不领料)")
    @ExcelProperty("领送料模式(11010:生产领料 11030:看板 11050:直送 11040:不领料)")
    private Integer issMode;

    @Schema(description = "领料提前期")
    @ExcelProperty("领料提前期")
    private Integer issLeadTime;

    @Schema(description = "计划类型(0:人工订货 1:再订货点 2:MPS 3:MRP)")
    @ExcelProperty("计划类型(0:人工订货 1:再订货点 2:MPS 3:MRP)")
    private Integer planningMode;

    @Schema(description = "关重件", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("关重件")
    private Boolean isKeyPart;

    @Schema(description = "质检组织", example = "30")
    @ExcelProperty("质检组织")
    private Long qualityOrgId;

    @Schema(description = "生产线", example = "12843")
    @ExcelProperty("生产线")
    private Long productLineId;

    @Schema(description = "默认采购组织", example = "28800")
    @ExcelProperty("默认采购组织")
    private Long purOrgId;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}